package com.suixuan.support.web.listeners;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.suixuan.support.context.ContextHolderStrategyUsers;

/**
 * 
 * 
 * Nanjing Zhou Su co.,Ltd
 * 
 * @Title: HttpSessionDestroyedLinsteners.java
 * @Package: com.suixuan.spring.web.listeners
 * @Description: HttpSession销毁监听
 * @Author: suixuan
 * @Date 2010-9-13 上午11:36:18
 * @Version V1.0
 * 
 */
public class HttpSessionDestroyedLinsteners implements HttpSessionListener {

	@Override
	public void sessionCreated(HttpSessionEvent se) {

	}

	@SuppressWarnings("static-access")
	@Override
	public void sessionDestroyed(HttpSessionEvent se) {
		ContextHolderStrategyUsers.getInstance().remove(se.getSession().getId());
	}

}
